package com.mydemo.game.hireStage;

import com.mydemo.entity.Save;
import java.util.Scanner;

public class HireStage {
    static Scanner scanner = new Scanner(System.in);
    public static final Save hireStage(Save save) {
        boolean flag = true;
        while (flag) {
            System.out.println("""
                    接下来你要前往哪里？
                    1. 人才市场
                    2. 汽车城
                    3. 二手车交易市场
                    4. 结束交易阶段
                    """);
            int choose = scanner.nextInt();
            switch (choose) {
                case 1 -> save = TalentMarket.talentMarket(save);
                case 2 -> System.out.println("当前功能未开放，尽请期待");
//                        save = CarMarket.carMarket(save);
                case 3 -> save = UsedCarMarket.usedCarMarket(save);
                case 4 -> flag = false;
                default -> System.out.println("输入不正确，请重新输入");
            }
        }
        return save;
    }
}
